package health.lm.com.component_base.base.mvp.inner;

import android.os.Bundle;
import android.view.View;

import com.trello.rxlifecycle2.LifecycleTransformer;

/**
 * Created by wanglei on 2016/12/29.
 */

public interface IView<P> {
    void bindUI(View rootView);

    void bindEvent();

    int getOptionsMenuId();

    int getLayoutId();

    boolean useEventBus();

    P newP();

    void initData(Bundle savedInstanceState);
    /**
     * 绑定生命周期
     *
     * @param <T>
     * @return
     */
    <T> LifecycleTransformer<T> bindToLife();
}
